﻿using System;
using Interfaces.Information_Interfaces;

namespace Presenters.Inherited_Presenters
{
    public class OperationStatus
    {
        public string exception = String.Empty;
        public string nameOperation = String.Empty;

        public OperationStatus() { }

        public void ShowError(IErrorView view)
        {
            view.exception = this.exception;
            view.nameOperation = this.nameOperation;
            view.ReturnView<System.Windows.Forms.Form>().ShowDialog();
        }

        public void ShowSuccess(ISuccesView view)
        {
            view.nameOperation = this.nameOperation;
            view.ReturnView<System.Windows.Forms.Form>().ShowDialog();
        }
    }
}
